package com.ruoyi.campus.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 留言板评论对象 my_comment
 *
 * @author zht
 * @date 2021-10-24
 */
public class MyComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    private String cId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String comId;

    /** 评论者ID */
    @Excel(name = "评论者ID")
    private Long cuserId;

    /** 评论者账号 */
    private String cuserName;

    /** 评论者头像 */
    private String avatar;

    /** 商品发布者ID */
    @Excel(name = "商品发布者ID")
    private Long spuserId;

    /** 发布者账号 */
    private String spuserName;

    /** 评论内容 */
    private String content;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date commTime;

    /** 评论状态 0异常 1正常 2删除 3未读*/
    @Excel(name = "评论状态 0异常 1正常 2删除 3未读")
    private String commStatus;

    /** 回复消息列表 */
    private List<MyReply> replyList;

    /** 回复总数量 */
    private int allReply;

    public void setcId(String cId)
    {
        this.cId = cId;
    }

    public String getcId()
    {
        return cId;
    }
    public void setComId(String comId)
    {
        this.comId = comId;
    }

    public String getComId()
    {
        return comId;
    }
    public void setCuserId(Long cuserId)
    {
        this.cuserId = cuserId;
    }

    public Long getCuserId()
    {
        return cuserId;
    }
    public void setSpuserId(Long spuserId)
    {
        this.spuserId = spuserId;
    }

    public Long getSpuserId()
    {
        return spuserId;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setCommTime(Date commTime)
    {
        this.commTime = commTime;
    }

    public Date getCommTime()
    {
        return commTime;
    }
    public void setCommStatus(String commStatus)
    {
        this.commStatus = commStatus;
    }

    public String getCommStatus()
    {
        return commStatus;
    }

    public String getCuserName() {
        return cuserName;
    }

    public void setCuserName(String cuserName) {
        this.cuserName = cuserName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getSpuserName() {
        return spuserName;
    }

    public void setSpuserName(String spuserName) {
        this.spuserName = spuserName;
    }

    public List<MyReply> getReplyList() {
        return replyList;
    }

    public void setReplyList(List<MyReply> replyList) {
        this.replyList = replyList;
    }

    public int getAllReply() {
        return allReply;
    }

    public void setAllReply(int allReply) {
        this.allReply = allReply;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cId", getcId())
            .append("comId", getComId())
            .append("cuserId", getCuserId())
            .append("cuserName", getCuserName())
            .append("avatar", getAvatar())
            .append("spuserId", getSpuserId())
            .append("spuserName", getSpuserName())
            .append("content", getContent())
            .append("commTime", getCommTime())
            .append("commStatus", getCommStatus())
            .append("replyList", getReplyList())
            .append("allReply", getAllReply())
            .toString();
    }
}
